package com.bussiness.activiti.service;

import com.bussiness.activiti.dao.ActReProcdefDao;
import com.bussiness.activiti.model.ActReProcdefEntity;
import com.common.util.mypage.Pages;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: zyj
 * @create: 2020-01-19 14:43
 **/
@Service
public class DeployMentService {

    @Autowired
    private ActReProcdefDao actReProcdefDao;

    /**
    * @Description: 获取已部署的流程列表
    * @Param: [pageSize, pageNumber]
    * @return: com.common.util.mypage.Pages
    * @Author: zyj
    * @Date: 2020/1/19
    */
    public Pages processList(Integer pageSize, Integer pageNumber) throws Exception{
        Pages pages = new Pages(pageNumber, pageSize);
        List<ActReProcdefEntity> list = actReProcdefDao.pageProcde(pages);
        pages.setRows(list);
        return pages;
    }
}
